﻿<?php
defined('BASEPATH') OR exit('No direct script access allowed');


$route['default_controller'] = 'indexs/index';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
///////////////////////////////////////


$route['login/action'] = 'User/loginAction';//post to Login
$route['register/view'] = 'User/registerView';
$route['register/action'] = 'User/registerAction';
$route['user/register/confirm'] = 'User/confirmView';
$route['user/profile'] = 'User/profileView';
$route['user/edit/profile'] = "User/profileEditAction";

$route['leave'] = "Leave/leaveView";
$route['sick_leave'] = "Leave/sickLeaveView";
$route['leave/new'] = "Leave/newLeaveView";
$route['sick_leave/new'] = "Leave/newSickLeaveView";
$route['leave/add/new'] = "Leave/newLeaveAction";
$route['leave/cancel'] = "Leave/cancelLeaveAction";
$route['leave/sick/assure'] = "Leave/assureSickAction";
$route['leave/detail/(:num)'] = "Leave/detailView/$1";
$route['sick_leave/detail/(:num)'] = "Leave/sickDetailView/$1";
$route['leave/detail/edit'] = "Leave/editAction";
$route['leave/detail/pend'] = "Leave/pendAction";

$route['approve'] = 'Leader/indexView';
$route['worker/(:num)'] = "Leader/workerView/$1";
$route['leave/pass'] = "Leader/passLeaveAction";

$route['api/leave/month'] = 'Leave/getLeaveByMonthAction';
$route['api/sick/month'] = 'Leave/getSickLeaveByMonthAction';
$route['api/worker/list'] = "Leader/getAllLinkedWorkersAction";